import FieldProps, {type IFieldProps} from '../../basic/FieldProps'

export interface IRadioProps extends IFieldProps{
  options: {value:string,label:string}[]
}
export default class RadioProps extends FieldProps implements IRadioProps{
  public options = [{value:'选项一',label:'选项一'},{value:'选项二',label:'选项二'}]

  constructor(props?:IRadioProps) {
    super({
      widgetLabel: "单选框",
      widgetType:"RADIO",
      ...(props||{})
    });
    if(props){
      this.options = props.options || this.options;
    }
  }

}



